<#include "/resources/share/common/_commtop.html"/>
<@layout>
<title>登 录</title>
<style>
.center{
float:none;
display:bolck;
margin-left:auto;
margin-right:auto;
}
h2{
text-align: center;
}
.bbox{
	  border: 1px solid #DFDFDF;
	  border-radius: 5px;
	  margin:0px;
	  padding: 50px;
	}
input{
	margin:5px;
	padding:5px;
}
table span {
    margin-left: 10px;
    font-size: 16px;
    color: red;
}
table a{
	font-size:20px;
	color:bule;
}
</style>
<div class="row bbox">
    <div class="col-xs-5 col-md-5 center">
    <h2>登 录</h2>
      <form action="${contextPath}/login/checklogin" method="post" class="form-signin">
      <table>
      	<tbody>
      		<tr>
      			<th>用户名</th>
      			<td><input type="text" class="form-control"  id="userName" name="user.user_name" value="${user.userName}" placeholder="用户名"/>	
      			</td>
      			<td><span>${nameMsg}</span></td>
      		</tr>
      		<tr>
      			<th>密码</th>
      			<td><input type="password" class="form-control"  id="userPassword" name="user.user_password" value="${user.user_password}" placeholder="密码"/></td>
      			<td><span>${pwdMsg}</span></td>
      		</tr>
      		<tr>
      			<th><img src="${contextPath}/common/captcha" onclick="getcaptcha(this);"/></th>
      			<td>
					<input type="text" id="captcha" name="captcha" 
						 class="form-control" 
						 placeholder="验证码" />
				</td>
				<td><span>${codeMsg}</span></td>
      		</tr>
      		<tr>
        		<th></th>
        		<td><button type="submit" class="btn btn-lg btn-primary btn-block" >登录</button></td>
        		<td></td>
      		</tr>
      	</tbody>
      </table>
  <script type="text/javascript">
  function getcaptcha(obj){
	  var nowtime = new Date();
	  obj.src="${contextPath}/common/captcha/"+nowtime;
	}
  
  </script>      
      </form>
</div>
</div>
</@layout>